package com.gljx.web.service;

import com.gljx.web.Entity.FillingWareReg;

import java.util.List;
import java.util.Map;

public interface FillingWareRegService {
	Map<String, Object> selectPageCount(String psql);

    Map<String, Object> selectPage(int pindex, String psql, int psize);
    
    /**
     * 获取最大编号
     * @return
     */
    String selectFnumber(String companyId);
    /**
     * 添加加油入库登记
     * @param fillingWareReg
     * @param fseq
     * @param oilId
     * @param cfqty
     * @param cfprice
     * @param cfamount
     * @param cfdesc
     * @return
     */
    int addFillingWareReg(FillingWareReg fillingWareReg,String [] fseq,String [] oilId,
    		String [] cfqty,String [] cfprice,String [] cfamount,String [] cfdesc);
    
    /**
     * 审核
     * @param fillingWareReg
     * @return
     */
    int updateFillingWareReg(FillingWareReg fillingWareReg);
    
    /**
     * 修改
     * @param fillingWareReg
     * @param fseq
     * @param oilId
     * @param cfqty
     * @param cfprice
     * @param cfamount
     * @param cfdesc
     * @return
     */
    int updateFillingWareReg(FillingWareReg fillingWareReg,String [] fseq,String [] oilId,
    		String [] cfqty,String [] cfprice,String [] cfamount,String [] cfdesc);
    
    /**
     * 根据fid删除
     * @param fid
     * @return
     */
    int deleteFillingWareRegByFid(String fid);
    
    /**
     * 根据fid查找加油入库信息
     * @param fid
     * @return
     */
    FillingWareReg selFillingWareRegByFid(String fid);

    /**
     * 查询加油入库登记
     * @param companyId
     * @param fnumber
     * @param fdescription
     * @param beginTime
     * @param endTime
     * @return
     */
    List<FillingWareReg> selectFillingWareReg(String companyId,String fnumber,String fdescription,String beginTime, String endTime);
}
